/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface FtdsSpv extends BasicModel<FtdsSpv> {
  spvSpvgsmc?: string; // spv公司名称
  spvTyshxydm?: string; // 统一社会信用代码
  spvFrmc?: string; // 法人名称
  spvLxfs?: string; // 联系方式
  spvKhxx?: string; // 开户信息
  spvBz?: string; // 备注
  spvSsf?: string; // 所属方
  spvSsid?: string; // 所属id
}

export const ftdsSpvList = (params?: FtdsSpv | any) =>
  defHttp.get<FtdsSpv>({ url: adminPath + '/operating/ftdsSpv/list', params });

export const ftdsSpvListData = (params?: FtdsSpv | any) =>
  defHttp.post<Page<FtdsSpv>>({ url: adminPath + '/operating/ftdsSpv/listData', params });

export const ftdsSpvForm = (params?: FtdsSpv | any) =>
  defHttp.get<FtdsSpv>({ url: adminPath + '/operating/ftdsSpv/form', params });

export const ftdsSpvSave = (params?: any, data?: FtdsSpv | any) =>
  defHttp.postJson<FtdsSpv>({ url: adminPath + '/operating/ftdsSpv/save', params, data });

export const ftdsSpvDelete = (params?: FtdsSpv | any) =>
  defHttp.get<FtdsSpv>({ url: adminPath + '/operating/ftdsSpv/delete', params });
